package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author : 李一涵
 * @date : Created in 2021-12-21 13:30
 * @description :
 */
public enum GameCurrency {

    /** 游戏货币枚举 */
    GAMEGOLD("GAMEGOLD", "元宝"),
    GAMEDIAMOND("GAMEDIAMOND","金刚石"),
    CHANGEGLORY("CHANGEGLORY","荣誉点"),
    GAMEPOINT("GAMEPOINT","游戏点"),
    GAMEGIRD("GAMEGIRD","灵符"),
    CREDITPOINT("CREDITPOINT","声望");

    @JsonValue
    private final String value;
    @EnumValue
    private final String code;

    GameCurrency(String code, String value) {
        this.value = value;
        this.code = code;
    }

    public String value() {
        return value;
    }
    public String code() {
        return code;
    }
}
